#include "CreateAddPowerUpMessage.h"

#include "..\Game Objects\GameObject.h"

#include "MessageID.h"

CreateAddPowerUpMessage::CreateAddPowerUpMessage(GameObject* owner)
	: Message(MessageID::MSG_ADD_POWER_UP)
{	
	// Store the owner
	pOwner = owner;
	pOwner->AddRef();
}


CreateAddPowerUpMessage::~CreateAddPowerUpMessage()
{
	if (pOwner != nullptr)
	{
		pOwner->Release();
		pOwner = nullptr;
	}
}
